package com.csist.service.po.userModule.impl;

import com.csist.mapper.po.userModule.UserInfoMapper;
import com.csist.pojo.po.userModule.UserInfo;
import com.csist.service.bo.UserInfoBoService;
import com.csist.service.po.userModule.UserInfoService;
import com.csist.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.Collections;
import java.util.List;

/**
 * @ClassName UserInfoServiceImpl
 * @Description 【自行描述】
 * @Author cn
 * @Date 2024/7/2 上午9:12
 * @Version 1.0
 */
public class UserInfoServiceImpl implements UserInfoService {
    private SqlSession sqlSession;
    private UserInfoMapper userInfoMapper;
    public UserInfoServiceImpl(){
        sqlSession = SqlSessionUtil.openSession();
        userInfoMapper = sqlSession.getMapper(UserInfoMapper.class);
    }
    @Override
    public List<UserInfo> findAll() {
        return Collections.emptyList();
    }

    @Override
    public List<UserInfo> searchUserInfoByColumn(UserInfo userInfo) {
        List<UserInfo> list = userInfoMapper.searchUserInfoByColumn(userInfo);
        if (list != null && list.size() > 0) {
            return list;
        }
        return null;
    }

    @Override
    public UserInfo getUserInfoById(int id) {
        return null;
    }

    @Override
    public int addUserInfo(UserInfo userInfo) {
        return 0;
    }

    @Override
    public int updateUserInfo(UserInfo userInfo) {
        return 0;
    }

    @Override
    public int deleteUserInfo(int uiId) {
        return 0;
    }
}
